package com.greedy.bean.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;

/**
 * @Author: Yanxy
 * @Date: Created in:2022-12-24
 * Description: 用户
 */
@Data
@Accessors(chain = true)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @JSONField(name = "ID")
    private Long id;

    /**
     * 手机号码
     */
    @JSONField(name = "PHONE")
    private String phone;

    /**
     * 密码，加密存储
     */
    @JSONField(name = "PASSWORD")
    private String password;

    /**
     * 昵称，默认是随机字符
     */
    @JSONField(name = "NICK_NAME")
    private String nickName;

    /**
     * 用户头像
     */
    @JSONField(name = "ICON")
    private String icon = "";

    /**
     * 创建时间
     */
    @JSONField(name = "CREATE_TIME")
    private Timestamp createTime;

    /**
     * 更新时间
     */
    @JSONField(name = "UPDATE_TIME")
    private Timestamp updateTime;


}
